const path = require('path')
const { IgnorePlugin } = require('webpack')

module.exports = {
    mode: 'development',

    entry: './src/index.js',

    output: {
        path: path.join(__dirname, 'dist'),
        filename: 'app.bundle.js'
    },

    plugins: [
        new IgnorePlugin({
            contextRegExp: /moment/,
            resourceRegExp: /\.\/locale/,
        })
    ]
}